GDK-Win32: Realize EGL using common realization code
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 8 Nov 2021 07:20:48 +0000 (15:20 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 8 Nov 2021 07:40:49 +0000 (15:40 +0800)
commit1b2e69f6c08047983bb1873b6cefed4a79a407f5
tree33f669a32919d92ee849a72c87cdcb5649c8a89c
parentee45869759593b3720fb361016da0b5893e59263
GDK-Win32: Realize EGL using common realization code

This will clean up the EGL code in GDK-Win32, as well as fixing crashes caused
by using an invalid EGL context in gdk_gl_context_make_current() as we did not
store up the EGL context in the correct place (lost during the transition to
the common EGL initialization code).

On the Windows/libANGLE side, the initialization of EGL has now fully moved to
the common code in GDK, but we will still default on WGL for now.  Help is
really appreciated for fixing the shaders on libANGLE!
gdk/win32/gdkglcontext-win32-egl.c